package com.mc.lp.security.user;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.springframework.security.web.WebAttributes;

public abstract class AbstractAuthenticationHandler {
	protected AbstractRedirectStrategy redirectStrategy;
    protected void clearAuthenticationAttributes(HttpServletRequest request) {
        HttpSession session = request.getSession(false);
        if (session == null) {
            return;
        }
        session.removeAttribute(WebAttributes.AUTHENTICATION_EXCEPTION);
    }
	public AbstractRedirectStrategy getRedirectStrategy() {
		return redirectStrategy;
	}
	public void setRedirectStrategy(AbstractRedirectStrategy redirectStrategy) {
		this.redirectStrategy = redirectStrategy;
	}
    
}	
